import request from '@/utils/request'

// 查询用户语音通话列表
export function listVoiceCall(query) {
  return request({
    url: '/user/voiceCall/list',
    method: 'get',
    params: query
  })
}

// 查询用户语音通话详细
export function getVoiceCall(id) {
  return request({
    url: '/user/voiceCall/' + id,
    method: 'get'
  })
}

// 新增用户语音通话
export function addVoiceCall(data) {
  return request({
    url: '/user/voiceCall',
    method: 'post',
    data: data
  })
}

// 修改用户语音通话
export function updateVoiceCall(data) {
  return request({
    url: '/user/voiceCall',
    method: 'put',
    data: data
  })
}

// 删除用户语音通话
export function delVoiceCall(id) {
  return request({
    url: '/user/voiceCall/' + id,
    method: 'delete'
  })
}
